package com.javatom.notes.mongo.po;

import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * 〈功能概述〉<br>
 *
 * @className: TreePojo
 * @package: com.javatom.notes.mongo.po
 * @author: TR
 * @date: 2019/7/10 9:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Document(collection = "lm_tree")
public class TreePojo {
    @Id
    private Integer id;

    /**
     * 业务id
     */
    @Field("business_id")
    @Ignore
    private String businessId;
    /**
     * 表名
     */
    @Field("table_name")
    private String tableName;

    @Field("nodes")
    private List<TreePojo> nodes;


}